import os
import sys

papath = "c:/fsbthing"

#subpathes = ["sk1","sk2","sk3","sk4","soulripper","diablo","combat","ghoul","butcher"]
#subpathes = ["combat","ghoul","butcher"]
subpathes = ["gob"]

for s in subpathes:
	p = papath + "/" + s + "/"
	#print p
	for a in os.listdir(p):
		if a[-4:] == ".fsb":
			options = " -A -d " + s + " " + p + a 
			print os.system("C:/fsbthing/fsbext.exe"+options)
			#print "C:/fsbthing/fsbext.exe"+options
